package com.x.aoki.common.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 公共包中的支付类
 *
 * @author caoy
 * @date 2025-02-14 17:56:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Payment implements Serializable {

    private static final long serialVersionUID = -7046395196011544715L;

    // 防止后端传入前端的Long类型会精度丢失
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String serial;
}
